How to // Comment
Add Linux Terminals // Ajouter les Terminaux Linux

Windows

[Windows] Add Linux Terminals



1. Download and install "Microsoft Windows Terminal v1.2.2381" (or newer)
2. Go to your "Turn Windows features on or off" menu and activate "Windows Subsystems for Linux"
3. Restart as requested
4. Go to the "Microsoft Store" and install "Ubuntu 18.04 LTS"
5. Launch the Ubuntu console
  • It will ask you for a username and password
  • /! \ The username must be the same as on your Windows!
6. Execute the "uuidgen" command to retrieve the unique ID needed for the Windows Terminal
7. Open the Windows Terminal
8. Right click -> Settings
  • Added an entry as follows:
  • {
  • "guid" : "{__YOUR_GUID__}",
  • "name" : "Ubuntu",
  • "commandline" : "wsl.exe -d Ubuntu",
  • "hidden" : false,
  • "icon" : "__YOUR_ICO__",
  • "startingDirectory" : "__YOUR_PATH__"
  • }
9. Save
- GIT
You can do the same for GIT (after installing it)
  • {
  • "guid" : "{__YOUR_GUID__}",
  • "name" : "Git Bash",
  • "commandline" : "\"C:/Program Files/Git/bin/bash.exe\" -i -l",
  • "hidden" : false,
  • "icon" : "__YOUR_ICO__",
  • "startingDirectory": "__YOUR_PATH__"
  • }
- Find your Ubuntu files (on Windows)
Your whole tree is in:
C:\Users\__VOTRE_USERNAME__\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs
- Access your Windows files (under Ubuntu)
  • cd /mnt/c (or /mnt/d)
  • ls
- Update Ubuntu
  • sudo apt update
  • sudo apt upgrade


How to

[How to] Ajouter les Terminaux Linux



1. Télécharger et installer "Microsoft Windows Terminal v1.2.2381" (ou plus récent)
2. Se rendre dans votre menu "Turn Windows features on or off" et activer "Windows Subsystems for Linux"
3. Redémarrer comme demandé
4. Se rendre dans le "Microsoft Store" et installer "Ubuntu 18.04 LTS"
5. Lancer la console d'Ubuntu
  • Il vous demandera un username et un mot de passe
  • /!\ Le username doit être le même que sur votre Windows !
6. Executer la commande "uuidgen" pour récupérer l'ID unique nécessaire au Terminal de Windows
7. Ouvrez le Terminal de Windows
8. Effectuez un bouton droit -> Paramètres
  • Ajouté une entrée comme suit :
  • {
  • "guid" : "{__VOTRE_GUID__}",
  • "name" : "Ubuntu",
  • "commandline" : "wsl.exe -d Ubuntu",
  • "hidden" : false,
  • "icon" : "__VOTRE_ICO__",
  • "startingDirectory" : "__VOTRE_PATH__"
  • }
9. Sauvegarder
- GIT
Vous pouvez faire parreil pour GIT (après l'avoir installé)
  • {
  • "guid" : "{__VOTRE_GUID__}",
  • "name" : "Git Bash",
  • "commandline" : "\"C:/Program Files/Git/bin/bash.exe\" -i -l",
  • "hidden" : false,
  • "icon" : "__VOTRE_ICO__",
  • "startingDirectory": "__VOTRE_PATH__"
  • }
- Trouver vos fichiers Ubuntu (sous Windows)
Tout votre arborescence est dans :
C:\Users\__VOTRE_USERNAME__\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs
- Accéder à vos fichiers Windows (sous Ubuntu)
  • cd /mnt/c (or /mnt/d)
  • ls
- Mettre à jour Ubuntu
  • sudo apt update
  • sudo apt upgrade